<div class="dataInnBottom">
    <div class="dataHeader">
        <h4>Notifications</h4>
    </div>
    <div class="clr"></div>
    <?php $this->addScriptPath('../application/views/scripts/'); ?>
    <?= $this->paginationControl($this->paginator, 'Sliding', 'paginator.phtml') ?>
    <div class="clr"></div>
    <table class="dataActions" width="100%" border="0" cellpadding="0" cellspacing="0" >
        <tr>
            <th>Cabinet</th>
            <th>Switch</th>
            <th>Team Members</th>
            <th>Assign Houses</th>            
            <th>Contract Price</th>
            <th>Files</th>
            <th class="allign-right">Actions</th>
        </tr>
        <?php foreach ($this->paginator as $item) {
        ?>
            <tr>
                <td><?php echo $item['cabinet_name'] ?></td>
                <td><?php echo $item['name'] ?></td>
            <?php
            $team_names = $this->getSwitchUsers($item['id']);
            if ($team_names != '') {
            ?>
                <td class="colGray">
                <?php
                echo $team_names;
            } else {
                ?>
            <td>
                <?php
                echo '<a href="javascript:void(0)" onclick="assignTeam('.$item['id'].')"/>Assign</a>';
            }
                ?>
            </td>
            <td>
            <?php
                if ($team_names != '') {
            ?>
                <a href="javascript:void(0)" onclick="assignHouses('<?php echo $item['id'];?>')">Assign Houses</a>
            <?php
                }else{
                    echo '-';
                }
            ?>
            </td>
            <td><? echo $item['contract_price']; ?></td>
            <td><a href="javascript:void(0)" onclick="addFiles('<?php echo $item['id']; ?>')"> files</a></td>
            <td class="allign-right">
                <a href="javascript:void(0)" onclick="editTeam(<?php echo $item['id'] ?>)"><img src="<?= $this->baseURI(); ?>images/pencil.png" alt="" /></a>
            </td>
        </tr>
        <?php } ?>
    </table>
</div>